﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CLEX.AdminUI.Service;

namespace CLEX.AdminUI.ViewModel
{
    internal sealed class UserReadVM : ViewModelBase
    {
        private readonly UserData user;

        public int UserId
        {
            get { return user.UserId; }
        }

        public string Username
        {
            get { return user.Username; }
        }

        public string Email
        {
            get { return user.Email; }
        }

        public bool IsAdmin
        {
            get { return user.IsAdmin; }
        }

        public UserReadVM(UserData user)
        {
            this.user = user;
        }

        public UserData GetData()
        {
            return user;
        }
    }
}
